package com.manor.paradise.provider

import android.app.Activity
import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.enums.PopupAnimation
import com.manor.common.interfaces.ElvesPwdProvider
import com.manor.common.utils.RouteUtil
import com.manor.paradise.dialog.EdPasswordDialog

/**
 *
 * @Project TaoMi
 * @date  2021/4/6  16:57
 * @version 1.0
 */
@Route(path = RouteUtil.ELVES_SET_PWD_PROVIDER)
  class HSetPwdProvider : ElvesPwdProvider{

    override fun showSetPwdDialog(mAct: Activity) {
        XPopup.Builder(mAct)
                .hasShadowBg(true)
                .dismissOnTouchOutside(true)
                .popupAnimation(PopupAnimation.ScaleAlphaFromCenter)
                .asCustom(EdPasswordDialog(mAct))
                .show()
    }

    override fun init(context: Context?) {
    }

}